SP.List.getItems Method (sp.js)

Returns a collection of items from the list based on the specified query.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

SP.List.getItems()

Parameters

Return value

Type: SP.ListItemCollection

Remarks

It must not be null.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/getItems(query)

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/getItems(query)

Resource parameters

  • query